home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / oldXscript < prev    next >
Encoding:
Text File  |  1990-04-26  |  1.1 KB  |  36 lines

  1. #!/bin/csh -f 
  2. #
  3. # Script for selecting the correct X server for the current machine.
  4. # $Header: /X11/R4/src/cmds/X/RCS/X,v 1.1 90/04/26 10:45:39 mendel Exp Locker: mendel $ SPRITE (Berkeley)
  5. #
  6. # Copyright 1989 Regents of the University of California
  7. # Permission to use, copy, modify, and distribute this
  8. # software and its documentation for any purpose and without
  9. # fee is hereby granted, provided that the above copyright
  10. # notice appear in all copies.  The University of California
  11. # makes no representations about the suitability of this
  12. # software for any purpose.  It is provided "as is" without
  13. # express or implied warranty.
  14. #
  15. set hostName = `hostname`
  16. set fbtypesFile = "/X11/R4/lib/fbtypes"
  17. set where    = '$2'
  18.  
  19. set type = `awk "/^$hostName/ { print $where;}" $fbtypesFile`
  20.  
  21. switch ($type)
  22.     case "FBTYPE_DS3100_BW"
  23.         exec /X11/R4/cmds/Xmfbpmax $*
  24.                 breaksw
  25.     case "FBTYPE_DS3100_COL"
  26.         exec /X11/R4/cmds/Xcfbpmax $*
  27.                 breaksw
  28.     case ""
  29.         exec /X11/R4/cmds/Xmfbpmax $*
  30.                 breaksw
  31.     default:
  32.         echo "Unknown fbType " $type " for host " $hostName
  33.                 breaksw
  34. endsw
  35. exit 1
  36.